package com.example.pages;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

public class ManagementPage extends InternalPage {

	@FindBy(id = "username")
	public WebElement userNameField;
	
	@FindBy(name = "email")
	public WebElement emailField;
	
	@FindBy(name = "password")
	public WebElement passwordField;
	
	@FindBy(name = "password2")
	public WebElement password2Field;
	
	@FindBy(name = "submit")
	public WebElement saveButton;

	@FindBy(className = "error")
	public WebElement errorMessage;
		
	public boolean thereIsErrorMessage() {
		return errorMessage.isDisplayed();
			
	}
}
